{{- if and .Values.experimental.gatewayAPI (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1/GatewayClass") }}
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
 name: kuma
spec:
 controllerName: "gateways.kuma.io/controller"
{{- else if and .Values.experimental.gatewayAPI (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1beta1/GatewayClass") }}
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
metadata:
 name: kuma
spec:
 controllerName: "gateways.kuma.io/controller"
{{- end }}
